package com.itheima.mybackstudy.studyyichang;

public class Test {
    public static void main(String[] args)  {
        try {
            function(120);
        } catch (LowScoreException e) {
            e.printStackTrace();
        }
    }
    public  static void function(int Score) throws LowScoreException {
        if(Score>100){
            throw new HighScoreException("老师很爱你");
        }
        if(Score<0){
            throw  new LowScoreException("老师不太爱你");
        }
        System.out.println("程序正常运行");
    }
}
